package com.xiaoyu.studyworkspace.mapper;

import com.xiaoyu.studyworkspace.pojo.AutoConfig;
import com.xiaoyu.studyworkspace.pojo.AutoLog;
import com.xiaoyu.studyworkspace.pojo.AutoUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AutoPlayMapper {
    public void insertUserInfo(AutoUser autoUser);

    public AutoUser selectUserInfoById(@Param("userId") long userId);

    public void updateAutoUser(AutoUser isAutoUser);

    public List<AutoUser> selectAllAutoUsers();

    public void updateAutoUserIsAuto(AutoUser isPrepare);

    public AutoLog selectAutoLogLast(AutoUser autoUser);

    public void updateAutoLog(AutoLog autoLog);

    public List<AutoLog> selectAutoLogsBySize(@Param("user_id") Integer user_id, @Param("size") int size);

    public void insertAutoLogByUserId(AutoLog autoLog);

    public AutoConfig selectAutoConfigById(@Param("userId") Integer userId);

    public void updateAutoConfig(AutoConfig autoConfig);

    public void insertAutoConfigById(AutoConfig autoConfig);

}
